import {RouteRecordRaw} from "vue-router";
import MainView from "../view/main/MainView.vue";
import MainBodyView from "../components/MainBodyView.vue";
import MainIndexView from "../components/MainIndexView.vue";
import BlogContent from "../components/BlogContent.vue";
import UserGradeView from "../components/UserGradeView.vue";
import UserMessageView from "../components/UserMessageView.vue";
import UserMessageSettingView from "../components/UserMessageSettingView.vue";
import PersonalCenterView from "../view/main/PersonalCenterView.vue";
import SelfDatumView from "../view/main/SelfDatumView.vue";

export const routes: RouteRecordRaw[] = [
    {
        path: '/',
        name: 'Main',
        component: MainView,
        meta: {
            title: '主页'
        },
        children: [
            {
                path: '/',
                name: 'mainIndex',
                component: MainIndexView,
                meta: {
                    title: '主页'
                },
            },
            {
                path: '/message',
                name: 'Message',
                component: UserMessageView,
                meta: {
                    title: '消息中心'
                },
            },
            {
                path: '/setting',
                name: 'Setting',
                component: UserMessageSettingView,
                meta: {
                    title: '消息设置'
                },
            },
            {
                path: '/grade',
                name: 'Grade',
                component: UserGradeView,
                meta: {
                    title: '我的等级'
                },
            },
            {
                path: '/content',
                name: 'MainContent',
                component: MainBodyView
            },
            {
                path: '/blogContent',
                name: 'blogContent',
                component: BlogContent
            },
            {
                path: '/personalCenter',
                name: 'PersonalCenter',
                component: PersonalCenterView,
                meta: {
                    title: '个人中心'
                },
                children: [
                    {
                        path: '/personalCenter-Self',
                        name: 'Self',
                        component: SelfDatumView
                    }
                ]
            }
        ]
    }
]
